import { createRouter, createWebHistory } from "vue-router";
const routes = [
    {
        path: '/',
        name: 'Layout',
        key: 'Layout',
        component: () => import('/src/Layout/index.vue'),
        children: [
            {
                path: '/hello01',
                name: 'hello01',
                key: 'hello01',
                component: () => import('/src/pages/HelloWorld.vue')
            },
            {
                path: '/hello02',
                name: 'hello02',
                key: 'hello02',
                component: () => import('/src/pages/HelloWorld.vue')
            },
            {
                path: '/configureStyle',
                name: 'Mapbox-配置样式',
                key: 'configureStyle',
                component: () => import('/src/pages/base/ConfigureStyle.vue')
            },
            {
                path: '/loadGeojson',
                name: 'Mapbox-加载geojson',
                key: 'LoadGeojson',
                component: () => import('/src/pages/base/LoadGeojson.vue')
            },
            {
                path: '/populationDensity',
                name: 'Mapbox-人口密度展示',
                key: 'LoadGeojson',
                component: () => import('/src/pages/base/PopulationDensity.vue')
            },
            {
                path: '/CenterMap',
                name: 'Mapbox-地图中心跟随鼠标控制',
                key: 'CenterMap',
                component: () => import('/src/pages/base/CenterMap.vue')
            },
            {
                path: '/population',
                name: '人口统计可视化',
                key: 'Population',
                component: () => import('/src/pages/base/CustomPopulation.vue')
            },
            {
                path: '/bounding',
                name: '江苏地区边界',
                key: 'Bounding',
                component: () => import('/src/pages/base/CenterJiangSu.vue')
            },
            {
                path: '/add3DModel',
                name: '添加3D模型',
                key: 'Add3DModel',
                component: () => import('/src/pages/base/Add3DModel.vue')
            }
        ]
    },
]

const BASE_ROUTES = [

]
const router = createRouter({
    history: createWebHistory(),
    routes,
    ...BASE_ROUTES
})
export default router
